﻿@using Peninsula.Web
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
     <meta charset="utf-8" name="viewport" content="width=device-width" />
    <title>@ViewBag.Title@ViewBag.SubTitle</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta name="MobileOptimized" content="320" />
    <link href="@Url.Content("~/favicon.ico")" rel="shortcut icon" />
    @Scripts.Render(BundleConfig.EchartTotalJs)
    @Styles.Render(BundleConfig.CssAdminBundle)
    @Styles.Render(BundleConfig.FrontdeskMenuCss)
    @RenderSection("Styles", false)
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
            border: 0;
            list-style: none;
        }
        /*=========mF_liuzg ========*/
        .mychgPic {
            width: 1165px;
            height: 700px;
            padding: 2px;
            border: 1px solid #999;
            margin: 0 auto;
        }

        .mF_liuzg {
            position: relative;
            width: 1165px;
            height: 700px;
            overflow: hidden;
            font: 12px/1.5 Verdana,Geneva;
            background: #fff;
        }

            .mF_liuzg .loading {
                position: absolute;
                z-index: 9999;
                width: 100%;
                height: 100%;
                color: #666;
                text-align: center;
                padding-top: 90px;
            }
            /*载入画面*/
            .mF_liuzg .pic li {
                width: 1200px;
                position: relative;
                overflow: hidden;
                *margin-top: -2px;
            }

                .mF_liuzg .pic li p {
                    width: 1200ox;
                    position: absolute;
                }

                    .mF_liuzg .pic li p a {
                        display: block;
                    }
                    /*图片和焦点图框架一样大小*/
                    .mF_liuzg .pic li p img {
                        width: 1210px;
                        height: 700px;
                    }

            .mF_liuzg .txt li {
                position: absolute;
                z-index: 2;
                bottom: 0;
                width: 1200px;
                height: 100px;
                line-height: 80px;
                overflow: hidden;
                display: none;
            }

                .mF_liuzg .txt li a {
                    display: block;
                    color: #fff;
                    padding: 2px 0 0 16px;
                    font-size: 14px;
                    font-weight: bold;
                    text-decoration: none;
                }
            /*标题样式*/
            .mF_liuzg .txt-bg {
                position: absolute;
                bottom: 0;
                z-index: 1;
                width: 0px;
                height: 36px;
                overflow: hidden;
                background: green;
                filter: alpha(opacity=50);
                opacity: 0.5;
            }
            /*标题背景*/
            .mF_liuzg .num {
                position: absolute;
                z-index: 3;
                bottom: 8px;
                right: 8px;
                color: #333;
            }
                /*按钮样式*/
                .mF_liuzg .num li {
                    float: left;
                    width: 22px;
                    height: 18px;
                    position: relative;
                    border: 1px solid #FFF;
                    line-height: 18px;
                    text-align: center;
                    margin-right: 3px;
                    cursor: pointer;
                    background: #000;
                    filter: alpha(opacity=90);
                    opacity: 0.9;
                    color: #FFF;
                }

                    .mF_liuzg .num li.current, .mF_liuzg .num li.hover {
                        background: #A61814;
                        color: #fff;
                        font-weight: bold;
                    }
    </style>
    <script type="text/javascript">
var myFocus={

 //http://hi.baidu.com/koen_li
 $:function(id){return document.getElementById(id);},
 $$:function(tag,obj){return (typeof obj=='object'?obj:this.$(obj)).getElementsByTagName(tag);},
 style:function(obj,style){return (+[1,])?window.getComputedStyle(obj,null)[style]:obj.currentStyle[style];},//getStyle简化版
 easeOut:function(t,b,c,d){return -c*((t=t/d-1)*t*t*t - 1) + b;},
 move:function(obj,prop,val,type,spd,fn){//运动函数，spd为运动需要的时间，时间越大速度越小
  var t=0,b=parseInt(this.style(obj,prop)),c=val-b,d=spd||50,st=type,m=c>0?'ceil':'floor';
  if(obj[prop+'Timer']) clearInterval(obj[prop+'Timer']);
  obj[prop+'Timer']=setInterval(function(){
   if(t<d){obj.style[prop]=Math[m](myFocus[st](++t,b,c,d))+'px';}
   else {clearInterval(obj[prop+'Timer']);fn&&fn.call(obj);}
  },10);return this;
 },
 addList:function(obj,cla,x){//生成HMTL,cla为列表的class,其中封装有:cla='txt'(生成alt文字),cla='num'(生成按钮数字),cla='thumb'(生成小图)
  var s=[],n=x||this.$$('li',this.$$('ul',obj)[0]).length,num=cla.length;
  for(var j=0;j<num;j++){
   s.push('<ul class='+cla[j]+'>');
   for(var i=0;i<n;i++){s.push('<li>'+(cla[j]=='num'?(i+1):(cla[j]=='txt'?this.$$('li',obj)[i].innerHTML.replace(/\<img.*?\>/i,this.$$('img',obj)[i].alt):(cla[j]=='thumb'?'<img src='+(this.$$('img',obj)[i].getAttribute("thumb")||this.$$('img',obj)[i].src)+' />':'')))+'<span></span></li>')};
   s.push('</ul>');
  }; obj.innerHTML+=s.join('');
 },
 setting:function(par){
  if(window.attachEvent){window.attachEvent('onload',function(){myFocus[par.style](par)});}
　　  else{window.addEventListener('load',function(){myFocus[par.style](par)},false);}
 },
 mF_liuzg:function(par){
  var box=this.$(par.id),boxH=box.offsetHeight,t=par.time*1000;
  this.addList(box,['txt-bg','txt','num']);
  var pic=this.$$('li',this.$$('ul', box)[0]),n=pic.length;
  var c=boxH%par.chip?8:par.chip,h=boxH/c,pics=[];
  for(var i=0;i<c;i++){
   pics.push('<li><p>')
   for(var j=0;j<n;j++) pics.push(pic[j].innerHTML);
   pics.push('</p></li>')
  }
  this.$$('ul', box)[0].innerHTML=pics.join('');
  var ul=this.$$('ul',box),txt=this.$$('li',ul[2]),btn=this.$$('li',ul[3]),pic=this.$$('li',ul[0]);
  for(var i=0;i<c;i++){//初始化样式设置
   this.$$('p',pic[i])[0].style.top=-i*h+'px';
   pic[i].style.height=h+'px';
   this.$$('p',pic[i])[0].style.height=boxH*c+'px';
  }
  var index = 0;//开始显示的序号
  box.removeChild(this.$$('div',box)[0]);
  var run = function(idx) {
   var tt=par.type==4?Math.round(1+(Math.random()*(3-1))):par.type;//效果选择
   btn[index].className = '';
   txt[index].style.display='none';
            if(index==n-1) index=-1;
   var N=idx!=undefined?idx:index+1;
   var spd=tt==2?20:(tt==1?80:Math.round(20+(Math.random()*(80-20))));
   for(var i=0;i<c;i++){
    if(tt==3) spd=Math.round(20+(Math.random()*(80-20)));
    myFocus.move(myFocus.$$('p',pic[i])[0],'top',-N*c*h-i*h,'easeOut',spd);
    spd=tt==2?spd+10:(tt==1?spd-10:spd);
   }
   btn[N].className = 'current';
   txt[N].style.display='block';
            index = N;
        }
  run(index);
  var auto=setInterval(function(){run()},t);
  for (var j=0;j<n;j++){
   btn[j].j=j;
   btn[j].onclick=function(){if(!this.className) run(this.j)}
  }
  box.onmouseover=function(){clearInterval(auto);}
     box.onmouseout=function(){auto=setInterval(function(){run()},t);}
  for(var i=0,lk=this.$$('a',box),ln=lk.length;i<ln;i++) lk[i].onfocus=function(){this.blur();}//去除虚线框
 }
};
myFocus.setting({
 style:'mF_liuzg',//style为风格样式，
 id:'myFocus',//焦点图ID
 chip:8,//图片切片数量，能被焦点图的高整除才有效，默认为8片
 type:4,//切片效果，1为甩头，2为甩尾，3为凌乱，4为随机效果
 time:2//每帧图片时间间隔
});//更多样式设置留意myFocus正式版
    </script>
</head>
<body>
            <div  style="background:url(../../css/admin/img/shouye.jpg)">
                <div class="page-header-fixed  page-sidebar-fixed">
                    <nav>
                        <ul>
                            <li id="menu"><a href="@Url.Action("Index", "Home")">主页</a></li>
                            <li id="menu"><a href="@Url.Action("CreateOrEditRepairOrder", "RepairOrder")">报修物品</a></li>
                            <li id="menu"><a href="@Url.Action("Index", "RepairOrder")">订单跟踪</a></li>
                            <li id="menu"><a href="@Url.Action("AlreadyPaidDetalis", "RepairOrder")">完成订单</a></li>
                            <li id="menu"><a href="@Url.Action("HouseholdsTotal", "RepairOrder")">订单统计</a></li>
                            @Html.Partial("_Person")
                            <li id="menu"><a href="@Url.Action("Logout","Account")">退出</a></li>
                        </ul>
                    </nav>
                </div>
                <div class="">
                    <div class="">
                        <div class="">
                            <div class="container">
                                <!-- BEGIN PAGE TITLE -->
                                <h3 class="page-title">
                                    @ViewBag.Title
                                </h3>
                                <!-- END PAGE TITLE -->
                                <!-- BEGIN PAGE BREADCRUMB -->
                                @Html.Partial("_Breadcrumb")
                                <!-- END PAGE BREADCRUMB -->
                            </div>
                            <div class="col-md-12">
                                <!-- BEGIN PAGE MESSAGE -->
                                @Html.Partial("_Messages")
                                <!-- END PAGE MESSAGES -->
                            </div>
                            <div class="w1200 container container-fluid">
                                <section>
                                    @RenderBody()
                                </section>
                            </div>
                            @Html.Partial("_Footer")
                        </div>
                    </div>
                </div>
            </div>
    
                <script type="text/javascript">
                    var SiteSetting = {
                        domain: "@ViewBag.Domain"
                    }
                </script>
                @Scripts.Render(BundleConfig.JsJQueryBundle)
                @Scripts.Render(BundleConfig.JsJQueryValidateBundle)
                @Scripts.Render(BundleConfig.JsAdminBundle)
                <script type="text/javascript" src="@Url.Content(String.Format("~/js/plugins/globalize/cultures/globalize.culture.{0}.js", System.Threading.Thread.CurrentThread.CurrentCulture))"></script>
                <script type="text/javascript">
                    $(document).ready(function () {
                        Globalize.culture("@System.Threading.Thread.CurrentThread.CurrentCulture");
                        moment.lang("@System.Threading.Thread.CurrentThread.CurrentCulture");
                        App.init();
                        $.recoobAjaxPage();
                    });
                </script>
                @RenderSection("Scripts", false)
</body>
</html>